PROGRAMS	= simple_thread detached_attrib thread_incr thread_incr_mutex thread_incr_rwlock  thread_incr_spinlock \
dead_lock prod_no_condvar prod_condvar thread_multijoin  \
 strerror_test strerror_test_tsd strerror_test_tls

.PHONY:         all clean

all:            $(PROGRAMS)

CFLAGS=-pthread
LDFLAGS=

clean: 
	@rm -f *.o *.a $(PROGRAMS) a.out core 

strerror_test: strerror.c strerror_test.c
	gcc ${CFLAGS} -o $@ strerror.c strerror_test.c 

strerror_test_tsd: strerror_tsd.c strerror_test.c
	gcc ${CFLAGS} -o $@ strerror_tsd.c strerror_test.c 

strerror_test_tls: strerror_tls.c strerror_test.c
	gcc ${CFLAGS} -o $@ strerror_tls.c strerror_test.c 

copy_buffer_size65535: copy.c
	gcc -o $@ -D BUF_SIZE=131070 copy.c
